# coding:utf-8
# @Time    : 2021/12/8 16:51
# @Author  : Martin
from page_object.approve_page import ApprovePage
from page_object.base.base_page import BasePage


class MyJobPage(BasePage):
    _base_url = "/nspas-web-in/workitemAllList.do?processType=TYPE10252"

    def go_to_approve(self, act):
        self.click('link text', act)
        self.close()
        self.switch_current_handle()
        return ApprovePage(self.driver, self.logger)
